from flask import g, current_app


def func1():
    print('func1')
    print(g.name)
    # 应用上下文中使用current_app代替app(Flask对象)
    print(current_app.url_map)

